package com.api.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("content")
public class Content implements Serializable {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long userId;
    
    private String title;
    
    private String description;
    
    private String content;
    
    // 内容类型：1-图文，2-视频
    private Integer type;
    
    // 封面图片URL
    private String coverUrl;
    
    // 图片URL列表，以JSON数组形式存储
    private String imageUrls;
    
    // 视频URL
    private String videoUrl;
    
    // 点赞数
    private Integer likeCount;
    
    // 评论数
    private Integer commentCount;
    
    // 状态：0-草稿，1-已发布，2-已删除
    private Integer status;
    
    private LocalDateTime createTime;
    
    private LocalDateTime updateTime;
} 